package com.sunny.myproject.produce.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.system.entity.IdEntity;

@Entity
@Table(name="tb_mrp")
public class Mrp extends IdEntity{

	private Bom bom;
	private String code;
	/**
	 * 计划生产数量
	 */
	private double plan_amount;
	/**
	 * 实际生产数量
	 */
	private double actual_amount;
	/**
	 * 部门
	 */
	private String department;
	/**
	 * 人员
	 */
	private String personel;
	private Date date;
	private Date startDate;
	private Date endDate;
	private String remark;
	/**
	 * 状态
	 */
	private String status = "未审核";
	/**
	 *
	 */
	private String mrp_form;
	/**
	 *是否是mrp 
	 */
	private String is_mrp;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public double getPlan_amount() {
		return plan_amount;
	}
	public void setPlan_amount(double plan_amount) {
		this.plan_amount = plan_amount;
	}
	public double getActual_amount() {
		return actual_amount;
	}
	public void setActual_amount(double actual_amount) {
		this.actual_amount = actual_amount;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getPersonel() {
		return personel;
	}
	public void setPersonel(String personel) {
		this.personel = personel;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getMrp_form() {
		return mrp_form;
	}
	public void setMrp_form(String mrp_form) {
		this.mrp_form = mrp_form;
	}
	public String getIs_mrp() {
		return is_mrp;
	}
	public void setIs_mrp(String is_mrp) {
		this.is_mrp = is_mrp;
	}
	
	@ManyToOne(targetEntity=Bom.class)
	public Bom getBom() {
		return bom;
	}
	public void setBom(Bom bom) {
		this.bom = bom;
	}
	
}
